#pragma once
#include "LogicCalendar.h"

typedef CWinTraits<WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0> CalendarTraits;

class CCalendarFrame
    : public CFrameWindowImpl<CCalendarFrame, ATL::CWindow, CalendarTraits>
{
public:
    CCalendarFrame();
    ~CCalendarFrame();

    BEGIN_MSG_MAP_EX(CCalendarFrame)
        MSG_WM_ERASEBKGND(OnEraseBkgnd)
        MSG_WM_PAINT(OnPaint)
    END_MSG_MAP()

protected:
    // message handler
    BOOL OnEraseBkgnd(CDCHandle dc);
    void OnPaint(CDCHandle dc);

private:
    CLogicCalendar      m_oCalendar;
};